﻿<UserControl x:Class="MindFactorial.LaunchPoint.Console.WaitUIControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    >
    <UserControl.Resources>
        <Storyboard x:Key="OnLoaded1">
            <ColorAnimationUsingKeyFrames RepeatBehavior="Forever"  BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="SlateGray"/>
            </ColorAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever"  BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever"  BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.119"/>
            </DoubleAnimationUsingKeyFrames>
            <PointAnimationUsingKeyFrames RepeatBehavior="Forever"  BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Stroke).(LinearGradientBrush.StartPoint)">
                <SplinePointKeyFrame KeyTime="00:00:00" Value="0,0.5"/>
                <SplinePointKeyFrame KeyTime="00:00:02" Value="0.493,-0.036"/>
                <SplinePointKeyFrame KeyTime="00:00:04" Value="1,0.513"/>
                <SplinePointKeyFrame KeyTime="00:00:06" Value="0.5,1.036"/>
                <SplinePointKeyFrame KeyTime="00:00:08" Value="0,0.5"/>
            </PointAnimationUsingKeyFrames>
            <PointAnimationUsingKeyFrames RepeatBehavior="Forever"  BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Stroke).(LinearGradientBrush.EndPoint)">
                <SplinePointKeyFrame KeyTime="00:00:00" Value="1,0.5"/>
                <SplinePointKeyFrame KeyTime="00:00:02" Value="0.507,1.036"/>
                <SplinePointKeyFrame KeyTime="00:00:04" Value="0,0.487"/>
                <SplinePointKeyFrame KeyTime="00:00:06" Value="0.5,-0.036"/>
                <SplinePointKeyFrame KeyTime="00:00:08" Value="1,0.5"/>
            </PointAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <UserControl.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource OnLoaded1}"/>
        </EventTrigger>
    </UserControl.Triggers>

    <Grid x:Name="LayoutRoot">
        <Ellipse HorizontalAlignment="Center" VerticalAlignment="Center" Width="200" Height="200" x:Name="ellipse" Fill="{x:Null}"  StrokeThickness="20">
            <Ellipse.Stroke>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="SlateGray" Offset="0"/>
                    <GradientStop Color="White" Offset="1"/>
                </LinearGradientBrush>
            </Ellipse.Stroke>
        </Ellipse>
    </Grid>
</UserControl>
